angular.module('meMoreListServices', [])

  .factory('MoreList', function ($resource, $rootScope, ENV, Storage) {


    //设置访问接口路径
    var APIUrl = ENV.api;

    //访问获取用户信息的接口
    var toMeMoreResource = $resource(APIUrl + "meMore/toMeMore.do");

    var moreListPageInfoJson;

    return {

      //获取“更多”界面的初始化信息（微信二维码图片）
      getMoreListPageInfo : function(){
        toMeMoreResource.save(
          {},
          function(data){
            moreListPageInfoJson = data;
            $rootScope.$broadcast('Me.getMoreListPageInfo');
          }
        );
      },

      getMoreListPageInfoJson : function(){
        return moreListPageInfoJson;
      }


    }

  });
